package com.seckill.mapper;

import com.seckill.domain.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface ProductSkuMapper {
    // 根据商品ID查询所有规格
    @Select("SELECT * FROM product_sku WHERE product_id = #{productId} AND status = 1")
    List<ProductSku> selectByProductId(Long productId);
} 